<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <div class="c" id="i">content</div>
  <script>
    let VNode = {
      tag: 'div',
      attrs: {
        className: 'c',
        id: 'b'
      },
      text: 'content',
      children: []
    }
    class VNode {
      // context是vm实例，elm是真实dom，componentOptions配置内容，asyncFactor异步工厂函数
      constructor(tag, data, children, text, elm, context, componentOptions, asyncFactor) {
        this.tag = tag
        this.data = data // 数据信息
        this.children = children
        this.text = text
        this.elm = elm
        this.context = context
        this.componentOptions = componentOptions
        this.asyncFactor = asyncFactor
        this.isCloned = false // 是否是克隆节点
        this.raw = false // 是否是元素html
        this.isComment = false // 是否是注释节点
      }
    }
  </script>
</body>
</html>